package Traductor.sintactico.utils;

public class ParTipos {
	ExprTipo e1,e2;

	public ParTipos(ExprTipo e1, ExprTipo e2) {
		super();
		this.e1 = e1;
		this.e2 = e2;
	}

	public ExprTipo getE1() {
		return e1;
	}

	public void setE1(ExprTipo e1) {
		this.e1 = e1;
	}

	public ExprTipo getE2() {
		return e2;
	}

	public void setE2(ExprTipo e2) {
		this.e2 = e2;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((e1 == null) ? 0 : e1.hashCode());
		result = prime * result + ((e2 == null) ? 0 : e2.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ParTipos other = (ParTipos) obj;
		if (e1 == null) {
			if (other.e1 != null)
				return false;
		} else if (!e1.equals(other.e1))
			return false;
		if (e2 == null) {
			if (other.e2 != null)
				return false;
		} else if (!e2.equals(other.e2))
			return false;
		return true;
	}
	
}
